package com.aircms.service;

import com.aircms.common.ServerResponse;
import com.aircms.pojo.Permission;
import com.aircms.pojo.validation.BaseQueryFieldsValidation;

public interface IPermissionService {
    ServerResponse store(String url, String method);
    ServerResponse index();
    ServerResponse update(Permission permission);
    ServerResponse insertMenuPermission(Permission p);       // 插入菜单权限
    ServerResponse getMenuPermission(BaseQueryFieldsValidation baseQueryFields,Integer pageNum, Integer pageSize);

    ServerResponse getRouterPermission(BaseQueryFieldsValidation baseQueryFields,Integer pageNum, Integer pageSize);
    ServerResponse destroy(Integer id);
    ServerResponse getAllRoutes(Integer roleId);
    ServerResponse getAllMenu(Integer roleId);

}
